package cn.com.huzo.repository.financial.impl;

import cn.com.huzo.model.entities.inventory.ReportInventoryDetailEntity;
import cn.com.huzo.repository.financial.ReportLateArrivalPoRepository;
import huzofw.repository.impl.GenericRepositoryImpl;
import huzofw.repository.impl.MyBatisDaoUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;

/**
 * 晚到货订单数据一览表数据访问对象。
 *
 * @author 吴旭
 */
@Repository("ReportLateArrivalPoRepository")
public class ReportLateArrivalPoRepositoryImpl extends GenericRepositoryImpl<ReportInventoryDetailEntity, HashMap>
        implements ReportLateArrivalPoRepository {

    private final String namespace = "cn.com.huzo.repository.financial.ReportLateArrivalPoRepository";

    /**
     * 构造函数,设置the instance to ProductRepositoryImpl.class.
     */
    public ReportLateArrivalPoRepositoryImpl() {
        super(ReportInventoryDetailEntity.class);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<ReportInventoryDetailEntity> fetchReportData(Map<String, Object> criterion) {
        return getSqlSession().selectList(MyBatisDaoUtils.getMapperQueryId(
                namespace, "fetchReportData"), criterion);
    }
}
